<!-- 富文本编辑器 -->
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.all.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/js/ajaxfileupload.js"></script>
<style type="text/css">
  .w240{width: 240px;}
  .sml-240{padding-left: 240px;}
</style>


<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
              </div>
              <div class="admin-form theme-primary  center-block" style="padding-bottom: 175px; margin-top:30px; width:90%">
              <div class="panel heading-border panel-primary">
                <form method="post" action="{:U('Column/saveGameInfo')}"  >
                  <div class="panel-body bg-light">
                    <div class="section-divider mt20 mb40"><span> 游戏信息项 </span></div>
                    <php>
                      $isEdit = 0;
                      if (!empty($data)) {
                        $isEdit = 1;
                      }
                    </php>
                    <!-- .section-divider -->
                    <input type="hidden" value="{$data['id']}" name="aid">
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="title" id="title" class="gui-input" placeholder="此处输入标题：必填" value="{$data['name']}">
                        </label>
                        <label  class="button btn-primary w240" >游戏标题：</label>
                      </div>
                    </div>

                    <!-- <div class="row">
                      <div class="col-md-4">
                        <div class="section">
                           <span class="fileupload-preview thumbnail m5 pull-left">
                            <img src="{$data['images']}" class="img-responsive" id="slt" title="stairs-to_soul.jpg">
                          </span>
                        </div>
                      </div> -->

                      <div class="col-md-6 hidden-xs">
                        <div class="section">
                          <p class="lead">这里展示产品的缩略图！</p>
                          <span class="fileupload-preview thumbnail m5 " >
                               <img id="uploader1" src="{$data['smpic']}" class="img-responsive" title="uploader">
                         </span>
                          <label class="field prepend-icon file">
                            <span class="button btn-primary">选择文件</span>
                            <input type="file" class="gui-file" style="width:0px;" name="file1" id="file1" onchange=" ajaxuploadImg('file1','text1','{:U('Ajax/uploadImg')}','uploader1');">
                            <input type="text" class="gui-input" name="img1" id="text1"  value="{$data['smpic']}">
                            <label class="field-icon"><i class="fa fa-upload"></i></label>
                          </label>
                          <!-- <label class="block mt15 switch switch-primary">

                            <input type="checkbox" name="iscommend" id="t1"  <?php if($data['iscommend']){ echo "checked" ;} ?>>
                            <label for="t1" data-on="YES" data-off="NO"></label>
                            <span>是否推荐</span>
                          </label> -->

                          <label class="block mt15 switch switch-primary">
                            <div class="smart-widget sm-left sml-120">
                              <label  class="field prepend-icon ">
                                <input type="text" name="sort" id="sort" class="gui-input" placeholder="输入序号" value="{$data['sort']}">
                              </label>
                              <label  class="button btn-primary w120" >排序：</label>
                            </div>
                          </label>
                        </div>
                      </div>

                      <div class="col-md-6 hidden-xs">
                        <div class="section">
                          <p class="lead">这里展示产品描述图片！</p>
                          <span class="fileupload-preview thumbnail m5 " >
                               <img id="uploader2" src="{$data['despic']}" class="img-responsive" title="uploader">
                         </span>
                          <label class="field prepend-icon file">
                            <span class="button btn-primary">选择文件</span>
                            <input type="file" class="gui-file" style="width:0px;" name="file2" id="file2" onchange="ajaxuploadImg('file2','text2','{:U('Ajax/uploadImg')}','uploader2');">
                            <input type="text" class="gui-input" name="img2" id="text2"  value="{$data['despic']}">
                            <label class="field-icon"><i class="fa fa-upload"></i></label>
                          </label>

                        </div>
                      </div>

                      <div class="col-md-6 hidden-xs">
                        <div class="section">
                          <p class="lead">下载二维码！</p>
                          <span class="fileupload-preview thumbnail m5 " >
                               <img id="uploader3" src="{$data['erweima']}" class="img-responsive" title="uploader">
                         </span>
                          <label class="field prepend-icon file">
                            <span class="button btn-primary">选择文件</span>
                            <input type="file" class="gui-file" style="width:0px;" name="file3" id="file3" onchange="ajaxuploadImg('file3','text3','{:U('Ajax/uploadImg')}','uploader3');">
                            <input type="text" class="gui-input" name="erweima" id="text3"  value="{$data['erweima']}">
                            <label class="field-icon"><i class="fa fa-upload"></i></label>
                          </label>

                        </div>
                      </div>



                    </div>
                    </br>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label  class="field prepend-icon ">
                          <input type="text" name="keyword" id="keyword" class="gui-input" value="{$data['downloadnum']}">
                        </label>
                        <label  class="button btn-primary w240" >下载人数(单位：万)：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label  class="field prepend-icon ">
                          <input type="text" name="star" id="star" class="gui-input" value="{$data['star']}">
                        </label>
                        <label  class="button btn-primary w240" >星级描述：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label  class="field prepend-icon ">
                          <input type="text" name="feature" id="star" class="gui-input" value="{$data['feature']}">
                        </label>
                        <label  class="button btn-primary w240" >游戏特色：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label  class="field prepend-icon ">
                          <input type="text" name="description" id="description" class="gui-input" value="{$data['description']}">
                        </label>
                        <label  class="button btn-primary w240" >描述：</label>
                      </div>
                    </div>

                    <div class="section">
                        <h3>栏目内容：</h3>
                        <textarea id="editor" style="height:300px;" name="content">{$data['content']}</textarea>
                    </div>


                </div>

                  <div class="panel-footer text-right">

                    <input type="hidden" id="edit" name="edit" value="{$isEdit}"/>
                    <input type="hidden" id="editId" name="editId" value="{$data['id']}"/>


                    <button type="submit" class="button btn-primary">提交</button>
                    <button type="reset" class="button btn-primary">清空</button>
                  </div>
                  <!-- end .form-footer section -->
                </form>

              </div>

            </div>
            </div>
          </div>
        </div>
</div>

<script type="text/javascript">
   var ue = UE.getEditor('editor');
</script>
